import request from './request'

/**
 * 文字重复度检测相关接口
 */
export const textcheckApi = {
  /**
   * 检测课程教学总结与已审核总结的重复度
   * 返回每种算法重复度最高的一条记录
   */
  checkSummaryDuplication(summaryId) {
    const url = `/api/textcheck/summary/${summaryId}/duplication`

    return request({
      url: url,
      method: 'get'
    }).then(response => {
      return response
    }).catch(error => {
      throw error
    })
  }
}

export default textcheckApi
